<?php
class M_settings extends CI_Model{

	function ubah_password($data,$id){
		$this->db->where('user_id',$id);
		$this->db->update('s_users',$data);
		echo 1;
	}
	
	function data_user($id){
		$this->db->where('user_id',$id);
		$query = $this->db->get("s_users");
		return $query->row_array();
	}

}